import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MainComponent } from './main/main.component';
import { BuilderViewerComponent } from './builder-viewer/builder-viewer.component';
import { RendererViewerComponent } from './renderer-viewer/renderer-viewer.component';

const routes: Routes = [{
  path: '',
  component: MainComponent,
  children: [{
    path: '',
    redirectTo: '/builder',
    pathMatch: 'full'
  }, {
    path: 'builder',
    component: BuilderViewerComponent
  }, {
    path: 'renderer',
    component: RendererViewerComponent
  }],
}];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class AdminRoutingModule { }
